package com.dc.dao;

import com.dc.entity.ConfigEntity;
import com.dc.entity.ConfigOceanEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ConfigOceanDao extends JpaRepository<ConfigOceanEntity, Long>, JpaSpecificationExecutor<ConfigOceanEntity> {

    public ConfigOceanEntity findByYearAndName(int year, String name);

    public List<ConfigOceanEntity> findByYear(int year);
}
